package com.company.factory;

import com.company.produce.phone.HuaweiPhone;
import com.company.abstruct.AbstractFactory;
import com.company.abstruct.Phone;
import com.company.abstruct.Tablet;
import com.company.produce.tablet.HuaweiTablet;

public class HuaweiFactory extends AbstractFactory {
    @Override
    public Phone producePhone() {
        System.out.println("华为手机工厂生产华为手机");
        return new HuaweiPhone();
    }

    @Override
    public Tablet produceTablet() {
        System.out.println("华为平板工厂生产华为平板");
        return new HuaweiTablet();
    }
}
